Fix bug when src directory is not created