Additional modification for Apache user/group

Also adding guard condition for static file/directory modifications