Fixed Requirements::path_for_file()

See http://open.silverstripe.org/ticket/8265. Important enough to go into 3.0.5?