Add slash between dir and filename, fixes some cases