You should build up the path using File directly instead of building a Unix path and assuming it works.