Build file path with basename.