added required shebang due to bash-specific behavior, removed cd and relative paths