Re-write `directory_list` and `file_list` methods.

  * use `file-list = if...` instead of `file_list = []` and
    then having the `if` statements
  * use map instead of each. this allows us to not have to keep
    'pushing' Dir.glob results into the file_list array.