Added detection of leading forward slash for full path (UNTESTED)