Bugfix: remove trailing slashes from layer filenames