Fix how file permission path is created