cmake: fix regex for hidden files
Previously hidden directories were also matched and stripped. This resulted in the build failing if the build dir contained one hidden directory (e.g. '/tmp/.abc/dune/...')
Edited by Stephan Hilb
Previously hidden directories were also matched and stripped. This resulted in the build failing if the build dir contained one hidden directory (e.g. '/tmp/.abc/dune/...')