appending slash to src path if necessary