allow DIRECTORY argument to be an absolute path (fix #51)