Rewrote the dot file/path restriction fix.
code cleanup, syntax