Bugfix with tilda in path