Change chmod call to foreman helper