Environment resolve can resolve absolute paths
Remove unused pathname