Added calculate permissions from umask script and made fix-permissions to change permissions according to users umask