Set working directory from current file