Hash filename based on sub-path