Use dirname to find directory of shell script.

Rather than just using `pwd` to determine the dotfiles directory use
`dirname` as well. This will return the directory that the script
resides in rather than just the directory that the script is being
called from.
Include SBT configuration file.

Passes some settings to the JVM to increase memory limits. Was
needed when compiling Scala code for Android on OS X.