Fixed bug: catch OSError from makedir if directory xeists
Merge commit '4c537c9'
Merge commit '469344e'
Added '$' to every regex with file extension
Merge commit 'b31dc3d': refactor: inline only once used functions