Fixes File name issues in other directories

- Finds the position of slashes in the full file path and decides whether the placement of underscores and dashes makes sense