Add check for immutable files

Add check for immutable files in the path