Should we check here if there are symlinks too? If there is only a symlinked file we would not want to get into the block above in `compiled_js`