pfad fix with expand_path