Derive app name from current directory.
Grep database.yml to guess the database.
build: Fix careless error when checking for symlink.