Added getPaths and getPaths sync, made extension optional

Can pass relative path and will be resolved via process.cwd()