Consistent use of $methods and $check_filename

+ Use $methods infavour of deprecated $check_methods
+ Use $check_filename infavour of hardcoded "manifest"
Use first argument from $method when generating manifests
Compatability with old coreutils, where dirname onyl takes single argument