Updated path system to use file.relative - credit to sindresorhus