Fix ARGS_DIRECTORY handling

- use get_filename_component to get the absolute path of the directory
  specified by the user.