Using 1.8.7-compliant File.expand_path instead of >1.9 File.realpath