Fix file path resolution on virtual machines