Update script to be runnable outside of directory.