Fix directory structure layout

The .gitignore file is a top-level file of the project directory and not in the source
subdirectory.