getting the absolute path before running the scan