added a setwd wrapper that converts windows to linux tilde expansion