use hard path to localrc
diff --git a/stack.sh b/stack.sh
index cdeb8a0..32b7a0c 100755
--- a/stack.sh
+++ b/stack.sh
@@ -43,6 +43,9 @@
     exit 1
 fi
 
+# Keep track of the current working directory.
+CWD=`pwd`
+
 # OpenStack is designed to be run as a regular user (Dashboard will fail to run
 # as root, since apache refused to startup serve content from root user).  If
 # stack.sh is run as root, it automatically creates a stack user with
@@ -152,6 +155,8 @@
     var=$1; msg=$2
     pw=${!var}
 
+    localrc=$CWD/localrc
+
     # If the password is not defined yet, proceed to prompt user for a password.
     if [ ! $pw ]; then
         # If there is no localrc file, create one