change pwd to /tmp to avoid permissions issues