Fixed issue related to rake sharefiles:setadmin
clean up