Better path handling in precompile