Prevent paths starting with ~ from being treated as relative