Inserting a regex function to check for path validity

Also denies the use of absolute paths
Some extra, minor modifications
Merge branch 'unstable'

* unstable:
  Some extra, minor modifications
  Inserting a regex function to check for path validity