Moves chmod to the correct place