Fixed if run with no arguments. Added a -p to print the directory,
useful for scripts that use this tool.