fix ARGS_DIRECTORY handling

- use get_filename_component to get the absolute path of the directory
  specified by the user.
Merge pull request #4 from grimmy/master

Fix ARGS_DIRECTORY handling