Fixing paths and file-doesn't-exist errors in bitbucket-gen-key.sh