change: set current directory to working directory if directory-path argument is nil.
change: utility functions has been added to a sandbox environment.