Specifying path using ~ causes some problems while running k web server.