[#1] Next fix in creating relative path. Added custom exceptions.