Added hooks to check symlinks and permissions