Improve permission check in path initializing
Improve permission check in fpath initializing